﻿<phone:PhoneApplicationPage 
    x:Class="Islamic_influence_in_Venetian_cuture.MainPage"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:phone="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone"
    xmlns:shell="clr-namespace:Microsoft.Phone.Shell;assembly=Microsoft.Phone"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    mc:Ignorable="d" d:DesignWidth="480" d:DesignHeight="696"
    FontFamily="{StaticResource PhoneFontFamilyNormal}"
    FontSize="{StaticResource PhoneFontSizeNormal}"
    Foreground="{StaticResource PhoneForegroundBrush}"
    SupportedOrientations="PortraitOrLandscape" Orientation="Portrait"
    shell:SystemTray.IsVisible="True">

<!--LayoutRoot è la griglia radice in cui viene inserito tutto il contenuto della pagina-->
    <Grid x:Name="LayoutRoot">
        <Grid.Background>
            <ImageBrush ImageSource="/Resources/pivot/1.png"/>
        </Grid.Background>
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="*"/>
        </Grid.RowDefinitions>

        <!--TitlePanel contiene il nome dell'applicazione e il titolo della pagina-->
        <StackPanel x:Name="TitlePanel" Margin="0,17,0,28" Background="#90202020">
            <TextBlock x:Name="ApplicationTitle" TextAlignment="{Binding Culture, Converter={StaticResource TextAlignmentConverter}}" Text="{Binding Title}" Style="{StaticResource PhoneTextNormalStyle}"/>
            <TextBlock x:Name="PageTitle" TextAlignment="{Binding Culture, Converter={StaticResource TextAlignmentConverter}}" Text="{Binding LanguageSelection}" Margin="9,-7,0,0" Style="{StaticResource PhoneTextTitle1Style}"/>
        </StackPanel>

        <!--ContentPanel - inserire ulteriore contenuto qui-->
        <Grid x:Name="ContentPanel" Grid.Row="1" Margin="12,0,12,0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="0.5*" />
                    <ColumnDefinition Width="0.5*" />
                </Grid.ColumnDefinitions>
                <Grid.RowDefinitions>
                    <RowDefinition Height="0.5*"/>
                    <RowDefinition Height="0.5*"/>
                </Grid.RowDefinitions>
            <Button x:Name="English" Content="English" Grid.Row="0" Grid.Column="0" Click="English_Click" Background="#90202020"/>
            <Button x:Name="Italiano" Content="Italiano" Grid.Row="0" Grid.Column="1" Click="Italiano_Click" Background="#90202020"/>
            <Button x:Name="Arabic" Content="Arabo" Grid.Row="1" Grid.Column="0" Click="Arabic_Click" Background="#90202020"/>
            <Button x:Name="Farsi" Content="Farsi" Grid.Row="1" Grid.Column="1" Click="Farsi_Click" Background="#90202020"/>
        </Grid>
    </Grid>
 
    <!--Codice di esempio che illustra l'utilizzo di ApplicationBar-->
    <phone:PhoneApplicationPage.ApplicationBar>
        <shell:ApplicationBar IsVisible="True" IsMenuEnabled="True">
            <!--<shell:ApplicationBarIconButton IconUri="/Images/appbar_button1.png" Text="Pulsante 1"/>
            <shell:ApplicationBarIconButton IconUri="/Images/appbar_button2.png" Text="Pulsante 2"/>-->
            <shell:ApplicationBar.MenuItems>
                <shell:ApplicationBarMenuItem x:Name="Arabic_bar" Text="Arabic" Click="Arabic_bar_Click" />
                <shell:ApplicationBarMenuItem x:Name="English_bar" Text="English" Click="English_bar_Click" />
                <shell:ApplicationBarMenuItem x:Name="Farsi_bar" Text="Farsi" Click="Farsi_bar_Click" />
                <shell:ApplicationBarMenuItem x:Name="Italian_bar" Text="Italiano" Click="Italian_bar_Click" />
            </shell:ApplicationBar.MenuItems>
        </shell:ApplicationBar>
    </phone:PhoneApplicationPage.ApplicationBar>

</phone:PhoneApplicationPage>